<?php
declare (strict_types = 1);

namespace app\api\model\v1;

use think\Model;

/**
 * @mixin \think\Model
 */
class LearnTopic extends AppModel
{
    //
    public function option()
    {
       return $this->hasMany(LearnOption::class,'learn_topic_id');
    }
    public function optionList()
    {
        return $this->hasMany(LearnOption::class,'learn_topic_id');
    }


    public function collectionTopic(){
        return $this->hasOne(CollectionTopic::class,'learn_topic_id');
    }
}
